package ex.klmy.gov.bean;

import org.nutz.dao.DB;
import org.nutz.dao.entity.annotation.*;

/**
 * Created by xiaguoqiang on 16/11/3.
 */
@Table("[wbtree]")
public class Category {
    @Column("wbtreeid")
    private String id;
    @Column("wbname")
    private String name;
    @Column("wbename")
    private String code;
    @Column("wbpicurl")
    private String img;
    @Column("childCount")
    private int childCount;

//    public Category(String id, String name, String code) {
//        this.id = id;
//        this.name = name;
//        this.code = code;
//    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getImg() {
        if(img != null && !img.equals(""))
            return "http://www.klmyq.gov.cn" + img;
        else
            return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
}
